package com.cy.pj.notice.dao;

import com.cy.pj.notice.pojo.SysNotice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysNoticeDao {
    List<SysNotice> selectNotices(SysNotice sysNotice);

    int deleteById(Long... id);

    int insertNotice(SysNotice entity);

    @Select("select * from sys_notice where id=#{id}")
    SysNotice findById(Long id);

    int updateNotice(SysNotice newNotice);
}
